/**
 * NEEDS REWRITING DO NOT USE
 * 
 * */

using UnityEngine;
using System.Collections;

[System.Serializable]
public class PlaySoundOnWalkTerrain : MonoBehaviour {
	
	public AudioSource source;
	public AudioClip sound01;
	public bool debug = false;
	
	private string message = "";
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnCollisionEnter(Collision collision) {
		message = "Player collided with " + collision.ToString();
	}
	
	void OnGUI() {
		if (debug) {
			GUI.Box(new Rect(100,100,200,200), message);
		}	
	}
}
